<?php 
session_start(); 

if (isset($_SESSION['k_username'])) {
include ("../../conexion.inc.php");
$link = Conectarse();
$editadopor=$_SESSION['k_username'];
$fecha = date("y-m-d h:i:s");
mysql_select_db("gotica_sociosgotica",$link);
$sql1 = "UPDATE tareas SET Hecha=1 WHERE idtarea=$_POST[idtarea]";
$resulta1 = mysql_query($sql1);

echo "<SCRIPT LANGUAGE=\"javascript\">";
echo "location.href = \"../../index2.php\"";
echo "</SCRIPT>";
?>
<?
}else
{
	echo "<SCRIPT LANGUAGE=\"javascript\">";
echo "location.href = \"index.php\"";
echo "</SCRIPT>";
	}
?>

